import request from '@/utils/request'
// 登录
export function login_api(data) {
  /*   return request({
      method: "POST",
      url: "/user_admin/login"
    }) */

  return new Promise((resolve, reject) => {
    resolve({
      code: 20000,
      token: "test-token123456789"
    })
  })

}
// 获取用户信息 
export function getInfo(token) {
  // return request({
  //   url: '/user_admin/user_info',
  //   method: 'get',
  //   params: {
  //     token
  //   }
  // })
  return new Promise((resolve, reject) => {
    resolve({
      info: {
        name: "tina",
        avatar: "超级管理员"
      }
    })
  })
}
// 退出登录
export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
